{assign var=formId value='list'}
<div id="content">
    <div class="highlight">
        {if isset($tabadmindefault)}{$tabadmindefault}{/if}
        <div class="searchType">
            <form action="{$base_url}" method="post" name="searchMenu" id="searchMenu">
                <fieldset>
                    <h3>{l s='search_for'}</h3>
                    <p>
                        <label>{l s='keyword'}</label>
                        <input type="text" value="{$searchTerms}" id="searchTerms" name="searchTerms" />
                        <input type="hidden" id="op"  name="op" value="{$op}" />
                        <input type="hidden" id="act" name="act" value="list" />
                        <select id="searchLang" name="searchLang">
                            {$listLanguages}
                        </select>
                        <input type="submit" value="{l s='display'}" title="{l s='display'}" name="btnDisplay" class="btnDisplay" />
                    </p>
                </fieldset>
            </form>
        </div>
        {if $infoText}
            <div class="{$infoClass}">
                <h4>Result:</h4>
                <p>{$infoText}</p>
            </div>
        {/if}
        {if $act eq 'add'}
        <ul id="tabListFunction">
            <li><a href="javascript:void(0);" onclick="action('{$formId}', 'list');" title="{l s='list'}">{l s='list'}</a> </li>
            <li><a href="javascript:void(0);" onclick="action('{$formId}', 'reset');" title="{l s='reset'}">{l s='reset'}</a> </li>
            <li><a href="javascript:void(0);" onclick="action('{$formId}', 'add');" title="{l s='save'}">{l s='save'}</a> </li>
        </ul>
        {/if}
        <form id="{$formId}" name="{$formId}" action="{$base_url}" method="post">
            <div class="tableContent">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <thead>
                    <tr>
                        <th width="5%"><input class="box3" type="checkbox" name="all" id="all" value="1" onclick="toggleAllChecks('{$formId}');" /></th>
                        <th width="5%">{l s='No'}</th>
                        <th width="40%">{l s='Default Text'}</th>
                        <th width="35%">{l s='Translate Text'}</th>
                        <th width="15%">{l s='Actions'}</th>
                    </tr>
                </thead>
                <tbody>
                    {if $listObjects}
                    {assign var=i value=$listObjects.pages.start}
                    {foreach from=$listObjects.data item=object}
                        {assign var=i value=$i+1}
                        <tr {if $i%2 == 0}class="bgType"{/if} >
                            <td width="5%"><input class="box3" type="checkbox" name="oIds[]" id="oIds" value="{$object->getField('id')}" /></td>
                            <td width="5%">{$i|number_format}</td>
                            <td width="40%">{$object->getField('default_text')}</td>
                            <td width="35%">{$object->getField('translate_text')}</td>
                            <td width="15%">
                                <a href="{$url->getUrl('config_translate')}/act/add/languages_other/{$object->getField('languages_other')}/code/{$searchLang}/oId/{$object->getField('id')}" class="edit" oId="{$object->getField('id')}" title="{l s='edit'}"><img src="{$base_url}/templates/{$usertemplate}/images/misc/edit.png" alt="{l s='edit'}" width="16" height="16" /></a>
                            </td>
                        </tr>
                    {/foreach}
                    {/if}
                </tbody>
            </table>
                <div class="paging">
                    <p class="btnType">
                        <input type="hidden" id="op"  name="op" value="{$op}" />
                        <input type="hidden" id="act" name="act" value="{$act}" />
                        <input type="hidden" id="searchLang" name="searchLang" value="{$searchLang}"/>
                        <input type="hidden" id="searchTerms" name="searchTerms" value="{$searchTerms}"/>
                        <input type="hidden" id="searchStatus" name="searchStatus" value="{$searchStatus}"/>
                        <input type="hidden" id="orderBy" name="orderBy" value="{$orderBy}"/>
                        <input type="hidden" id="orderDir" name="orderDir" value="{$orderDir}"/>
                        <input type="hidden" id="page" name="page" value="{$page}"/>
                        <input type="hidden" id="oId" name="oId" value="" />
                        <input type="hidden" id="position" name="position" value="" />
                        <input type="hidden" id="plus" name="plus" id="plus" value="" />
                    </p>
                    {include file="admin/paging.temp.html" title=action}
                </div>
            </div>
        </form>
    </div>
</div>